On the old layout, press directly the
button in the Note buttons area.
Interaction
The full list of revisions are displayed on the left in reverse chronological
order.
The revisions are grouped by the date the revision was taken.
This list does not contain the current state of the note, so it
is possible to have notes with no revisions/snapshots saved.
The icon of a revision indicates the source of that revision (e.g.
a
icon for a manually saved revision).
Pressing the […] on the top-right of the dialog displays multiple options,
including:
Saving a new revision now.
Checking the interval and limit for this note (see below).
Deleting all the revisions of this note.
For supported notes (text, code), changes are highlighted. This behavior
can be toggled via the Highlight changes at the top of the dialog.
The highlighted changes are relative to the current state of the note,
not to the revision prior to this one.
For any given revision, the buttons on the top-right allow operating on
it:
Deleting the revision.
Downloading the revision locally.
Restoring the revision, which replaces the current content of the note
with the one from the revision. Another revision is saved containing the
current content of the note.
Named revisions
Named revisions are a new feature of Trilium v0.103.0 which allows adding
a short description of what the changes in the snapshot contain.
In the list of note revisions:
The name of the revision is displayed underneath the time of the revision
in the sidebar, as well as at the top of the dialog where it is displayed
in full.
Clicking on the edit button near the name of the revision allows it to
be changed.
To create a named revision, either:
Go to the Note buttons,
select Save named revision…, enter the name of revision and confirm.
A revision is restored, causing the existing note content to be saved
as a revision to prevent potential data loss.
Snapshot interval
Time interval of taking note snapshot is configurable in the Options ->
Other dialog. This provides a trade-off between more revisions and more
data to store.
To turn off note versioning for a particular note (or sub-tree), add
disableVersioninglabel to the note.
Maximum revisions
The limit on the number of note snapshots can be configured in the Options
-> Other dialog. The note revision snapshot number limit refers to the
maximum number of revisions that can be saved for each note. Where -1 means
no limit, 0 means delete all revisions. You can set the maximum revisions
for a single note through the versioningLimit=X label.
The note limit will not take effect immediately; it will only apply when
the note is modified.
You can click the Erase excess revision snapshots now button to
apply the changes immediately.